import request from '@/utils/request.js'

//登录
export const getCounselorService=(data)=>{
  return request.post('/counselor/getCounselor',data)
}


//获取所有咨询师账号
export const getUsernameService=()=>{
  return request.get('/counselor/getUsername')
}


//删除
export const delCounselorService=(data)=>{
  return request.post('/counselor/delCounselor',data)
}

//新增
export const saveCounselorService=(data)=>{
  return request.post('/counselor/saveCounselor',data)
}


//根据userid查询咨询师信息
export const getByUserIdService=(userId)=>{
  return request.get('/counselor/getByUserId',{
    params: { userId },
  })
}


//修改
export const upCounselorService=(data)=>{
  return request.post('/counselor/upCounselor',data)
}
